<%@ page language="java" contentType="text/html"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <title>坐诊时间</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            overflow-x: hidden;
            color: #666;
        }
        nav{
            width: 100%;
            height: 56px;
            background-color: #39bebe;
        }
        nav>span,nav>div>span>a,nav>a{
            display: inline-block;
            float: left;
            height: 26px;
            /* overflow: hidden; */
            margin: 14px 20px 0 0;
            padding-left: 10px;
            border-left: 1px solid #E0E0E0;
            font-weight: normal;
            font-size: 18px;
            line-height: 24px;
            color: #fff;
            text-decoration: none;
        }
        nav>div{
            position: relative;
            left: 200px;
        }
        nav>span:hover{
            text-decoration: underline;
            cursor: pointer;
        }
        nav>div>span>a:hover{
            text-decoration: underline;
            cursor: pointer;
        }
        nav>a:hover{
            text-decoration: underline;
            cursor: pointer;
        }
        nav>span{
            position: relative;
            left: 500px;
        }
        nav>a{
            position: relative;
            text-decoration: none;
            left: 500px;
        }
        .now{
            text-decoration: underline;
        }


        .left{
            float: left;
            width: 198px;
            height: 300px;
            border: 1px solid #E0E0E0;
            position: relative;
            left: 130px;
            top: 20px;
        }
        .left>div{
            width: 100%;
            height: 120px;
            border-bottom: 1px solid #e0e0e0;
        }
        .left img{
            width:80px;
            height:80px;
            display: inline-block;
            margin: 20px;
            float: left;
        }
        .left>div>span{
            float: left;
            /* border: 1px solid #999; */
            margin-top: 20px;
        }


        .right{
            float: left;
            width: 790px;
            height: 700px;
            border: 1px solid #E0E0E0;
            position: relative;
            left: 140px;
            top: 20px;
            margin-bottom: 100px;
        }
        form{
            position: relative;
            padding: 50px;
            line-height: 60px;
            font-size: 20px;
        }
        #save{
            height: 34px;
            width: 127px;
            background-color: white;
            color: #39bebe;
            border: 2px solid #39bebe;
            margin-top: 20px; 
            font-size: 20px;
            vertical-align: top;
            border-radius:5px;
        }
        #save:hover{
            cursor: pointer;
            background-color: #39bebe;
            color: white;
        }
        .r1{
            border-bottom: 1px solid #E0E0E0;
        }
        table{
            width:700px ;
            height:100px;
            position: relative;
            margin: 50px;
            /* background-color: #38abbb; */
        }
        b{
            color: #38abbb;
            position: relative;
            font-size: 25px;
            left: 100px;
            top: 20px;
        }


    </style>
</head>
<body>
    <nav>
        <div>
            <span><a href="../personal_data/d_per.jsp">个人资料</a></span>
            <span><a href="./d_order_set.jsp" class="now">坐诊时间</a></span>
            <span><a href="./d_order_date.jsp">最大预约数</a></span>
            <span><a href="../../pages/print/d-print.jsp">预约情况</a></span>
        </div>
        <span><c:out value="${ doc.name }"/>医生</span>
        <a href="../login/doctor_register.jsp">退出登录</a>
        </div>
    </nav>

    <div class="left">
        <div>
            <img src="../../patient/images/1.jpg" >
            <span>&nbsp&nbsp<c:out value="${ doc.name }"/>医生</span>
        </div>
    </div>

    <div class="right">
        <b>当前坐诊时间表</b>
        <div class="r1">
            <table border="1">
                <tr>
                    <th>时间段\星期</th>
                    <th>星期一</th>
                    <th>星期二</th>
                    <th>星期三</th>
                    <th>星期四</th>
                    <th>星期五</th>
                    <th>星期六</th>
                    <th>星期日</th>
                </tr>
                <tr>
                    <th>上午</th>
                    <th><c:out value="${ times[0][0] }" /></th>
                    <th><c:out value="${ times[1][0] }" /></th>
                    <th><c:out value="${ times[2][0] }" /></th>
                    <th><c:out value="${ times[3][0] }" /></th>
                    <th><c:out value="${ times[4][0] }" /></th>
                    <th><c:out value="${ times[5][0] }" /></th>
                    <th><c:out value="${ times[6][0] }" /></th>
                </tr>
                <tr>
                    <th>下午</th>
                    <th><c:out value="${ times[0][1] }" /></th>
                    <th><c:out value="${ times[1][1] }" /></th>
                    <th><c:out value="${ times[2][1] }" /></th>
                    <th><c:out value="${ times[3][1] }" /></th>
                    <th><c:out value="${ times[4][1] }" /></th>
                    <th><c:out value="${ times[5][1] }" /></th>
                    <th><c:out value="${ times[6][1] }" /></th>
                </tr>
                <tr>
                    <th>晚上</th>
                    <th><c:out value="${ times[0][2] }" /></th>
                    <th><c:out value="${ times[1][2] }" /></th>
                    <th><c:out value="${ times[2][2] }" /></th>
                    <th><c:out value="${ times[3][2] }" /></th>
                    <th><c:out value="${ times[4][2] }" /></th>
                    <th><c:out value="${ times[5][2] }" /></th>
                    <th><c:out value="${ times[6][2] }" /></th>
                </tr>
            </table>
            
        </div>
        <div>
            <b>修改坐诊时间</b>
            <form action="orderset" method="post">
                <label>星期：</label><input type="checkbox" name="date" value="1">一
                                    <input type="checkbox" name="date" value="2">二
                                    <input type="checkbox" name="date" value="3">三
                                    <input type="checkbox" name="date" value="4">四
                                    <input type="checkbox" name="date" value="5">五
                                    <input type="checkbox" name="date" value="6">六
                                    <input type="checkbox" name="date" value="7">日
                                    <br>
                <label>时间段：</label><input type="checkbox" name="date2" value="上午">上午
                                    <input type="checkbox" name="date2" value="下午">下午
                                    <input type="checkbox" name="date2" value="晚上">晚上
                                    <br>                    
                <label>是否坐诊：</label><input type="checkbox" name="bo" value="是">是
                                        <input type="checkbox" name="bo" value="否">否<br>
                <input type="submit" name="save" id="save" value="保存">
            </form>
        </div>
    </div>
</body>
</html>